const mongoose = require('mongoose')

const articleSchema = mongoose.Schema({
  title: String,
  parent: [{
    type: mongoose.SchemaTypes.ObjectId,
    ref: 'Category'
  }],
  body: String ,

},{
  timestamps:true
})
module.exports = mongoose.model('Article', articleSchema)